<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>广东国防教育学会</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.min.css" />
		<link rel="stylesheet" href="http://idangero.us/swiper/dist/css/swiper.min.css" />
		<link rel="stylesheet" href="/Public/Home/activity/css/style.css" />
	</head>
	<body>

<div class="page page-current" id="router1">
	<div class="bar bar-nav">
		<h1 class="title">答题</h1>
		<i class="icon icon-left" onclick="window.location.href='<?php echo U('Index/index');?>'"></i>
	</div>
	<div class="content answer">
		<div class="content-block-title text-center">
			<img src="/Public/Home/activity/img/answer_png.png">
		</div>
		<div class="content-block-inner" >
			<a href="<?php echo U('Answer/answer_test#router2');?>" class="button button-fill">赛前练习</a>
			<?php if($true_status == 1 AND $chance == 1): ?><a href="<?php echo U('Answer/answer_true#router2');?>" class="button button-fill">正式答题</a>
			<?php elseif($true_status == 1 AND $chance == -1): ?>
				<a onclick="message('你今天答题次题已达<?php echo ($every_day_num); ?>次上限！')" class="button button-fill">正式答题</a>
			<?php else: ?>
				<a href="<?php echo U('Answer/answer_true_form');?>" class="button button-fill">正式答题</a><?php endif; ?>
		</div>
	</div>
</div>
</body>
</html>
<link rel="stylesheet" href="/Public/Home/layer_mobile/need/layer.css"/>
<script type="text/javascript" src="/Public/Home/layer_mobile/layer.js"></script>
<script>
    //提示
    function message(msg) {
        layer.open({
            content: msg,
            skin: 'msg',
            time: 3 //2秒后自动关闭
        });
    }
</script>